const express = require('express');
const router = express.Router();

// 导入各个路由模块
const authRoutes = require('./auth');
const usersRoutes = require('./users');
const coursesRoutes = require('./courses');
const lessonsRoutes = require('./lessons');
const grammarRoutes = require('./grammar');
const vocabularyRoutes = require('./vocabulary');
const settingsRoutes = require('./settings');
const progressRoutes = require('./progress');
const advanceSearchRoutes = require('./advanceSearch');
const phonicsRoutes = require('./phonics');
const visitsRoutes = require('./visits');

// 挂载路由
router.use('/auth', authRoutes);
router.use('/users', usersRoutes);
router.use('/courses', coursesRoutes);
router.use('/lessons', lessonsRoutes);
router.use('/grammar', grammarRoutes);
router.use('/vocabulary', vocabularyRoutes);
router.use('/settings', settingsRoutes);
router.use('/progress', progressRoutes);
router.use('/advance-search', advanceSearchRoutes);
router.use('/phonics', phonicsRoutes);
router.use('/visits', visitsRoutes);

module.exports = router;